package com.huijie.app.u.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @ClassName UserLoginVO
 * @Description 员工账号 前端抽象实体
 * @Author Alex
 * @Date 2018/10/12 14:08
 * @Version 1.0
 */
@ApiModel
public class UserLoginVO {

	@NotBlank
	@ApiModelProperty(example = "admin", required = true, value = "用户名/appkey", position = 1)
	private String username;

	@NotNull
	@ApiModelProperty(example = "6", required = true, value = "用户类型", position = 2)
	private Integer userType;

	@NotBlank
	@ApiModelProperty(example = "123456", required = true, value = "密码/密钥", position = 3)
	private String password;
	
	@ApiModelProperty(value = "设备号",position = 4)
	private String deviceUuid;
	
	@ApiModelProperty(value = "设备类型",position = 5)
	private String deviceType;
	
	@ApiModelProperty(value = "客户端版本号",position = 6)
	private String lastAppVersion;
	
	@ApiModelProperty(example = "facade", value = "授权账号", position = 7)
	private String aaspCode;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getDeviceUuid() {
		return deviceUuid;
	}

	public void setDeviceUuid(String deviceUuid) {
		this.deviceUuid = deviceUuid;
	}

	public String getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}

	public String getLastAppVersion() {
		return lastAppVersion;
	}

	public void setLastAppVersion(String lastAppVersion) {
		this.lastAppVersion = lastAppVersion;
	}

	public String getAaspCode() {
		return aaspCode;
	}

	public void setAaspCode(String aaspCode) {
		this.aaspCode = aaspCode;
	}

	@Override
	public String toString() {
		return "UserLoginVO{" +
				"username='" + username + '\'' +
				", userType=" + userType +
				", password='" + password + '\'' +
				", deviceUuid='" + deviceUuid + '\'' +
				", deviceType='" + deviceType + '\'' +
				", lastAppVersion='" + lastAppVersion + '\'' +
				", aaspCode='" + aaspCode + '\'' +
				'}';
	}
}
